Below you can see the front-view size comparison of the Panasonic ZS3 and Pentax Q-S1. The Panasonic ZS3 is 2 mm narrower and 1 mm thinner than the Pentax Q-S1 but it is also 2 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.