How to make links widget drop-down by category

I have links in my sidebar, organized under multiple specific categories. Is there a way to make each link category a drop-down menu with links underneath? I want to reduce the vertical length of my right sidebar. Thanks!