Below you can see the front-view size comparison of the Nikon D5600 and Pentax K-S2. The Pentax K-S2 is 1 mm narrower and 6 mm shorter than the Nikon D5600 but it is also 3 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.