creating the customflowlayout : now the cells are always centered