Looping doesn't really work like the way the function is reacting. The loop is just showing the gangzones each 1024, when it's supposed to show it once.
With the values you have provided only 50 gang zones will be shown for the player. If your seeing more then this you must be calling the loop more then once.