Definition of gallery templates