Gallery with infinite scroll

NOTE: there'a fake delay of 1 second for the ajax loading, that way you can see the loading icon appear.