slide: improve resizing