Making slider work to filter meds