Put sublayersids in an array.