fixed non-js galleries