Jonathan
Have you considered to make the bed rails adjustable at each corner? this way you could keep the 'Z' shorter and do the machining in stages? It would make t machine very flexible for different uses.Spacers or a wind up/ down mechanism could be done fairly easily.