asynchronous ajax/php dynamic gallery