fixed card flip when changing cards in the carousel