Below you can see the front-view size comparison of the Panasonic G5 and Samsung NX mini. The Samsung NX mini is clearly the smaller of the two cameras. Its body is 10 mm narrower, 21 mm shorter and 48 mm thinner than the Panasonic G5.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.