second attempt at slider bug fix