Update to gallery js