gallery js fix