set layout to fit for scrollbars