swift: uicollectionview changes contentoffset of the cell during transition

I have a simple UICollectionView with a custom cell inside of a navigationController. For some reason when I push a viewController, the collectionView cell changes its layout during the transition.

Is it some common behavior of uicollectionview during viewController transition? Because, for example: labels don’t have such problem

When back button was clicked

Green color from collectionView