Making sure the observer gets removed from the collectionView when the class is being deallocated.