fixing gallery for mobile