How does Windows keep the taskbar tidy?

by consolidating buttons