Fixed photo gallery js.