Sadly, you can only do it like this (where ">>" means "docked to"):
Ship >> Elevating base >> Vertical turret rotation >> Horizontal turret rotation (vertical and horizontal can be switched places)
However, in your ship, the elevating base is between vertical and horizontal turret pivots.