sorting of gallery items ready