Fix slider position on window resize