fixed turbolinks issue for gallery