How to implement BS5 carousel on Sunrise theme with Flickity issues?

My theme uses Flickity carousel by default. The issue with this is, Flickity uses poor aria settings. It hides the slides, causing lower accessibility for screen readers.

I was looking at swapping this out to a BS5 carousel and testing speeds and performance. However, I cannot for the life of me figure out how to implement it onto the index.json file.

I have made a quick JSON write up of:

“slideshow-bs5”: {
“type”: “slideshow-bs5”
},

But I am given these error:

  • Section id ‘slideshow-bs5’ must exist in order
  • Section id ‘slideshow’ must exist in sections

I have a slideshow-bs5.liquid in sections. Can someone please advise.

Thanks in advance!