Dynamic URL for layers working, but array not very nice