Minimum width of images with alternating heights of rows and large margin, last image will fill the last row. Click "load more" (end of page) in order to see how more images can be added. View the options for this example minw : 100, alternateHeight : true, alternateHeightRange : { min : 50, max : 350 }, margin : 8, fillLastRow : true