Dock menu in Mac OS Style

Hi, I’m using the Mac OS Style Dock menu from:

Does anyone know how one could adjust the code to make the menu go vertical? I would like to have the effect that you can have in Mac OS when you put the Dock on the left side of the screen, so it scrolls vertiaclly.

Anyone who can help or have any hints?