When a gear retracts either forward
or backwards it is held in the retracted position by an uplock.
The uplock hooks onto the leg somewhere near the
wheel. So now we have the weight acting on the hinge line and the uplock. The CG will have moved marginally.