limiting number of thumbnails to be processed simultaneously