Need Help Decreasing A PHP loop from 12 to 3

Hi there I have some code which can be found here:

It outputs 12 properties in a recent properties section however no matter what I try I can’t workout how to output 3 properties instead of the 12. I’d like all 3 on one line so 3 columns.

The website that it’s on is if you scroll down to the first featured properties section it’s beneath that and it’s currently displaying a very messy 12 properties.

Any help greatly appreciated,