With these large queues, there is not much that can be done if a host of aircraft all land at similar times due to some flight delays. You can't really ask pax to stay on the aircraft at the gates until the immigration queue is short enough that people won't be offended.