Update gallery.tpl.php