Implemented container resizing