Build back layerindex