add open and close classes to card

add open and close classes to card