Below you can see the front-view size comparison of the Pentax 645Z and Nikon D4s. The Pentax 645Z is 4 mm narrower and 40 mm shorter than the Nikon D4s but it is also 32 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.