Optimally organizing a grid layout can be a problem when the sections have various heights and widths. The Masonry JavaScript grid layout lybrary finds the optimal position for each element just like a mason puts the bricks in a wall. Switch device to see the elements reorganizing.