added functioning slider that scales