Make slider work (roughly)