first version with integration of infinite-scroll + masonry with some bugs