cleaned up gallery.php, implemented sidebar.php