Below you can see the front-view size comparison of the Nikon D5500 and Panasonic GX8. The Panasonic GX8 is 19 mm shorter and 7 mm thinner than the Nikon D5500 but it is also 9 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.