How do I create a horizontal UICollectionViewLayout like this

I am wondering how do we make a UICollectionViewLayout like this?

It seems to be a difficult thing to achieve. I am able to create a horizontal layout but I am unable to make the second cell onwards become small and stack on each other like the picture blow

Horizontal Layout Like This