Update Gallery.php