make sure that the gallery is defined in the serialisation config for gallerHasMedia