fix html for gallery page