I'm not sure I understand what's going on. Do you mean that when the cylinder is OPEN, it moves back and creates a gap at the front???
If so, there is nothing wrong with your gun. What regulates backward cylinder movement, when in the open position, is the cylinder stop lug at the lower rear of the frame window, on the right side. This is the small circular lug that prevents the open cylinder from moving so far rearward that it would fail to close properly.
These are hand fit at the factory, and some are fitted longer than others, so there is a little more backward movement possible. All revolvers will show this gap when in the open position.
The only time a shim is needed, is when there's a problem with the CLOSED cylinder. If there is too much fore-and-aft movement in the closed cylinder, the gun has "cylinder endshake". This condition can be corrected by first trimming the cylinder crane's shaft, then fitting a hardened stainless washer, or shim.
As you described it, you have no problem with your gun, this is entirely normal.