replaced slider with more robust slider