added slider creation with callback