allow more than 2 images per row, reorder entries to make it work better