[FMX] How to make Kirupa's tutorial-photogallery thumbnails vertical?

According to this tutorial http://www.kirupa.com/developer/mx2004/thumbnails.htm

I’d like to make the thumbnail-line vertical, but by simply changing x and y coordinates in the AS didnt work out…

Any suggestions? Thanks a lot in advance!!!