Dynamics of gas bubbles moving through liquid