add ratio value to flexbox grids