created base for auto-height secions(still needs some work as commented)