Adding contains method needed for Gallery component