change gallery template