Yeah, snails "walk" on the surface of the water as if it were another bottom to the tank. They consume bacteria and proteins in the biofilm that collects in still waters in their natural environment.
You'll never be able to stop it from floating, but as stated before you can provide floaters to keep it hidden.