use flexbox display for the array input: it allows us to vertical align divs in an easy and consistent way