adding class for cards