added size restrictive flow layout that considers min sizes of elements