template for the gallery index view