title: Collection View reusable cell issue while scrolling
body: <p>I am using the collection view to show the gif's on the list.
  Now facing the cell reusable issue while scrolling the cells up or down of collection view.</p>
  
  <p>Like <strong>itemA</strong> is on <strong>first</strong> place in the list and <strong>itemB</strong> is on the <strong>second</strong> place in the list.
  but when I scroll the data in the collection view. the places of items got misplaced. like some time itemA gone on 5th place or sometimes anywhere in the list. 
  i know i think this is the use with reusable cell, but don't know how to salve this.
  Plss help.</p>
  
  <p><strong>Collection view cellForItemAt</strong> </p>
  
  <pre><code>func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -&gt; UICollectionViewCell {
  
      guard let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "GifCell", for: indexPath as IndexPath) as? GifCell else {
          fatalError()
      }
  
      if gifArr.count &gt; 0 {
  
          let urlString = self.gifArr[indexPath.row]
          let url = URL(string: urlString)!
  
          DispatchQueue.global().async {
              let imageData = try? Data(contentsOf: url)
              let imageData3 = FLAnimatedImage(animatedGIFData: imageData) // this is the 3rd pary library to show the gifs on UIimageview's
              DispatchQueue.main.async {
                  cell.imageView.animatedImage = imageData3
                  cell.textLabel.text = String(indexPath.row)
              }
          }
      }
      return cell
  }
  </code></pre>