added autosize option. Panels now adjust for container dimensions.