I think that you are looking for a setting in Admin.
Configuration -> Images -> Number of additional images per row.