What's the setup? What's in there? How much, how often, and what are you feeding?
Snails only get out of control when there is more food available than snails to consume it. Most likely, reducing the food you give the fish, and cleaning the substrate better more frequently will reduce the available food enough the the population declines on its own.