fix slider so it resets on the right slide