 
     override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
         super.viewWillTransitionToSize(size, withTransitionCoordinator: coordinator)
-        self.refreshHistory(self.layout.thumbnailCount)
         self.layout.setupForOrientation(UIView.viewOrientationForSize(size))
+        self.collection?.reloadData()
     }
 
     override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {

            make.edges.equalTo(self.view)
        }
        self.collection = collection
        self.refreshHistory(layout.thumbnailCount)
    }

    deinit {

private let log = Logger.browserLogger

private let ThumbnailIdentifier = "Thumbnail"
private let FrecencyLimit = 20

extension UIView {
    public class func viewOrientationForSize(size: CGSize) -> UIInterfaceOrientation {
