Streaming live at 10am (PST)

finSweet slider (different amount items per slide on mobile)

Hi everyone! I have built cms slider with the help of Finsweet library and it’s work fine. But for now issue is to make only 1 item per slider on mobile. It refers to slider on home page (upcoming events) as well as to other slider that would be there
So I found that js code
document.addEventListener(‘DOMContentLoaded’, () => {
if (screen.width >= 1024) {
// add script for laptop/desktop
} else if (screen.width >= 768 && screen.width < 1024) {
// add script for tablet
} else if (screen.width < 768) {
// add script for mobile
but I’m not sure what script I should put into this code.
can anyone help me to finish this code? thank you!

Here is my site Read-Only: Webflow - Creca