Instead,
if you must stick content into little cards,
let the horionztal layout wrap to additional lines.
If you end up with too many horizontal lines of content,
then you definitely have too many items that can be accessed
via a horizontally panning UI.
You need a different UI altogether.