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