simple js mosaic-like gallery