Click this area to see the result of
$('.sample1').tile();
The parameter columns is number of columns.
$('.sample2').tile(4);