fix gallery single template