Hi raymundka,
As Shawn says, this is not a feature in IE7. However, this could be what you are looking for. Left click on 'Tools' and select 'Internet Options'. Click the 'Advanced' tab. Under 'Browsing', click to put a tick in the checkbox 'Close unused folders in History and Favorites' (see screenshot below). Note that this option is marked with an asterisk (*) which means that the browser needs to be restarted in order for this change to take effect.
Dwarf