Displays only the first few elements of a UL, placing the rest in a collapsible view.