Below you can see the front-view size comparison of the Canon SL2 and Olympus PEN-F. The Olympus PEN-F is 21 mm shorter and 33 mm thinner than the Canon SL2 but it is also 3 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.