rewrite the algorithm of waterfall layout in index page, to place each item in the min height column