Finish sidebar for gallery templates

Still need refine theme.js at setGalleryHeight