Converting to YUI gallery style