collapse directory structure for screens