limiting images to 3 in a row