flex layout by splitter