Below you can see the front-view size comparison of the Panasonic GH4 and Samsung NX1. The Panasonic GH4 is 6 mm narrower and 9 mm shorter than the Samsung NX1 but it is also 18 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.