moved collectionview layout delegate to layout