replace flex with inline-block