updating depreciated functions, slider example