fixed the slider not working properly on large sets of data