Accordion list tutorial

so I followed Josh Morony’s tutorial about creating accordion lists.

In his tutorial, he only looped one element to display a sort of “list” that can show the expand function.

When I click the view button, both of them display, instead of only one item displaying (as what the tutorial showed)

here’s how my code looks like:

What am I missing here?