If you want a slider in HTML and insert that into a HTML component and when the slider moves you use the event inside the HTML to postMessage back to Wix Code and filter on values sent back.
Study HTML Component communication between Wix Code and the HTML parts and you will be able to make it work.