use layers array in config and indexes to that array in sliders config so slider config works when copied and applayer id's change