Below you can see the front-view size comparison of the Olympus TG-870 and Olympus TG-4. The Olympus TG-870 is 2 mm shorter and 3 mm thinner than the Olympus TG-4 but it is also 1 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.