resize container with dynamic subviews