#129: improvement to loading inline gallery