Can someone help me out with this layout issue?

I’m still trying to debug this layout issue kinda struggling with it, I see that when I created this CardCollectionViewCell sub class Xcode added this “Autoresizing Mask constraints” I looked at some debugging tricks but I still don’t really get the idea were I can fix this, and also in this picture I don’t understand those lines on the right and bottom of the card are they misaligned? Can someone help me out with this?Screenshot 2020-07-17 at 13.21.23

And also when I click on the CardCollectionViewCell I can see this which is confusing