slider functions and styles