move _gallery_template contents to new doc/gallery_template.html

- clean up