jQuery plugin transforming an unordered list as a mosaic gallery