Use masonry plugin to create a smart layout on code page.