The easiest way to stabilise the z-axis is to connect them with a rod. More stiffness you will reach with two rods. In combination with a additional clamp between the rods will generate a rigid frame.