Gallery updates to template