fixed adding a child to a selected gallery