         layout.itemSize = frame.size
         
         super.init(frame: frame, collectionViewLayout: layout)
-
+        
         self.delegate = self
         self.dataSource = self
         self.pagingEnabled = true

        self.showsHorizontalScrollIndicator = false
        self.showsVerticalScrollIndicator = false
        
    }
    
    required public init?(coder aDecoder: NSCoder) {

        let indexPath = NSIndexPath(forRow: index, inSection: 0)
        self.reloadItemsAtIndexPaths([indexPath])
    }
    
    public func moveToIndex(index:Int) {
        let offset = CGPointMake(self.frame.size.width * CGFloat(index), 0)
        self.setContentOffset(offset, animated: true)
