Below you can see the front-view size comparison of the Pentax K-S2 and Panasonic G7. The Pentax K-S2 is 2 mm narrower and 4 mm thinner than the Panasonic G7 but it is also 5 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.