Below you can see the front-view size comparison of the Nikon D5600 and Canon SL2. The Canon SL2 is 2 mm narrower and 4 mm shorter than the Nikon D5600 but they have the same thickness of 70 mm.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.