My apple snails do the same exact floating thing. Especially when they crawl up the glass to the top of the tank, they (scurry, slide, walk, crawl, glide, whatever) across the tank for a bit and then let go. Since they have accumulated air bubbles they just float to the top for a little while...