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