renew container when resizing