Updated gallery.tpl