Adds left/right hotkeys to gallery template