Toggled class names for elements being dynamically created to reproduce the look of a card for css