Control stacked cards with CSS classes