Use a Carousel when the panels are interchangeable, each is worth the whole space, and the reader loses nothing by seeing one at a time: a hero rotation, a photo gallery, a set of quotes. Think twice, since whatever is on slide 3 is, for most readers, not on the page at all.
- A scrollable row when the reader should see that there is more. A row cut off at the edge invites a scroll.
- Tabs when the panels have names. A dot cannot carry a name.
- A Grid or Masonry when the reader should compare everything at once.
Wrap each slide in a div. Every direct child is one slide. A bare string, or a fragment with two nodes, does not split into two slides.
Give every slide a height. Slides have no height of their own, so a deck of text-only slides collapses.