Below you can see the front-view size comparison of the Nikon S31 and Olympus TG-4. The Nikon S31 is 7 mm narrower and 1 mm shorter than the Olympus TG-4 but it is also 11 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.