Ordering of gallery