You should first remove the cause. Snails only multiply when there is enough food available.
You just feed too much or in a way that the food is not eaten completely by the fish. Especially if the snails are able to multiply despite the loaches eating them.
With the right feeding and some patience the problem should solve itself.