Add more JS events to inline gallery field