adding gallery detail view and template