Use vector container. It will resize automatically.