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