Nerites are really durable, they can survive out of water for quite some time. Close to a day or more I think.
They shouldn't wander in a tank that size - I keep mine in 2.5 or smaller, and they never stray. As long as the water is good, they should be good!