Ensure sections are resized automatically

Ensure that sections will resize dynamically according to content size.
This commit should permanently fix section resize issues, and affects
issue #2.