Gallery template structure changed