add template for gallery and video