Hows the proper way to do that layouts using flex