gibs are trial and error. loosens the bottom screw way out. then tighten the top one maybe 1/4 turn at a time and check the slop as well as axis movement so you dont bind it up. once its set, then you tighten the bottom screw.
the z is the hardest to adjust because the weight of the head can make it hard for a puny human to check slop.