Fixed gallery.tpl