disabling gallery nesting