slide adapting on window resize