You can try chemical treatments (copper-based) if you're really desperate, although I would only recommend those as a last resort. Either make a snail trap and remove them manually, or get assassin snails to kill them off. But tbh if you keep the tank clean and don't overfeed, the snails won't...