Created layout modeled after `UICollectionViewFlowLayout`.