Below you can see the front-view size comparison of the Olympus E-M5 II and Panasonic GX8. The Olympus E-M5 II is 9 mm narrower and 18 mm thinner than the Panasonic GX8 but it is also 7 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.