make a fitting square into a parent container