Interaction Between the Piston Effect and Gravitational Convection