Below you can see the front-view size comparison of the Panasonic GH5S and Nikon D500. The Panasonic GH5S is 8 mm narrower and 17 mm shorter than the Nikon D500 but it is also 6 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.