The main function of the swim-bladder is for