add header and footer includes for gallery pages
rename tmpl to include