added slider functions