corrected gallery layout