Below you can see the front-view size comparison of the Canon SL2 and Samsung NX30. The Canon SL2 is 5 mm narrower and 3 mm shorter than the Samsung NX30 but it is also 12 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.