It can generate and release gas within its body. That's how it can control the altitude of its drift.