Below you can see the front-view size comparison of the Pentax K-70 and Panasonic GX8. The Panasonic GX8 is 15 mm shorter and 11 mm thinner than the Pentax K-70 but it is also 7 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.