changing ids to classes and running through an each on the flip contents for each card