Reduce splitter CSS and JS code as we use flex box model