Below you can see the front-view size comparison of the Olympus XZ-2 iHS and Olympus E-PL7. The Olympus XZ-2 iHS is 2 mm narrower and 2 mm shorter than the Olympus E-PL7 but it is also 10 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.