refactor flexbox in preparation for flex-line-pack