preserve file tree size when resizing