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