How can an item grow or shrink inside a container?