Detecting Short Period Variable Stars with Gaia