Use a Switcher layout for items that switch between column and row layouts when the container reaches a threshold width.
Switcher