setup mustache template for gallery