resizing of slides