Below you can see the front-view size comparison of the Leica SL2 and Pentax K-1 II. The Leica SL2 is 3 mm shorter and 3 mm thinner than the Pentax K-1 II but it is also 9 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.