Fix adding adding child galleries and adding images to a gallery