         print("testFrame")
         
         var cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as! FrameCollectionViewCell
-        var frameCounter : Int = 0
         if ((isMoviesDataDownloaded == true) && (currentSelectedMovie.framesURLs.count != 0)) {
             
             print(currentSelectedMovie.framesURLs[frameCounter])
             
             cell.frameInit(sringUrl: currentSelectedMovie.framesURLs[frameCounter])
             frameCounter += 1
+            
+            if (frameCounter == 5) {
+            
+                frameCounter = 0
+            }
         }
         
         //cell.backgroundColor = UIColor.black

                self.movieOverview.text = selectedMovie.movieOverview
                self.movieYear.text = String(describing: selectedMovie.movieYear)
                
                //TODO обработать кадры и постер
                self.moviePoster.sd_setImage(with: URL.init(string: selectedMovie.moviePoster))
                
                currentSelectedMovie = selectedMovie
                
                self.tableView.reloadData()
                

    /// Текущий выбранный фильм
    private var currentSelectedMovie : Movie = Movie.init()
    
    private var frameCounter : Int = 0
    
    @IBAction func cancelSettingsToMainMenu(segue:UIStoryboardSegue) {
    }
    
