                 let translate = CATransform3DMakeTranslation(transX, transY, 0);
                 
                 
-                delegate?.willOpenSliceAtIndex(cpt)
+                delegate?.willOpenSliceAtIndex!(cpt)
                 openedSlice?.transform = translate
-                delegate?.didOpenSliceAtIndex(cpt)
+                delegate?.didOpenSliceAtIndex!(cpt)
                 
                 
                 


}

protocol TurnDelegate {
    
    func willOpenSliceAtIndex(index:Int)
    func willCloseSliceAtIndex(index:Int)
    
    func didOpenSliceAtIndex(index:Int)
    func didCloseSliceAtIndex(index:Int)
    
}


                
                
                if((openedSlice?.transform) != nil)  {
                    delegate?.willCloseSliceAtIndex!(oldSelected)
                    openedSlice?.transform = oldTransform!
                    delegate?.didCloseSliceAtIndex!(oldSelected)
                }
                
                
