support changing of orientation

auto sizing the scroll view and recalculating and repositioning the
margin between subviews inside the scrollview