Working gallery

Made the gallery work