Edited index page to work with 'gallery.php'.