Added gallery template and thumbnail grid