The liquid expands as it is heated. The heat from the hands increases the kinetic energy of the molecules in the liquid, so they move faster on average and tend to move further apart as the collide and bump around. This results in an expansion of the liquid.