I don't know if it was proposed earlier, but the idea of a retractable carriage or a gun lift appeared.
The principle itself is implemented in the form of modules of various sizes from XS to XL. At a basic level, this is a small lift that allows you to shift the module fixed on the platform by 10 voxels. at the maximum XL level, it is a full-fledged lift with an armored lock. you can also beat the variation when there is a variation of the lift for each type of weapon.
I'll attach a raw image, but I'm not an artist.
Also I apologize for my poor English.