convert the format into new format javascriopy :     

26(5p) => 19005(3p)
    6827(3p) => 6939(3p)
    the arrow gets converted to '-'
    
    replace this format to  #slices= '5p.26-3p.19005,3p.6827-3p.6939' using JavaScript
    i tried the below code, too long to execute
    for(let i=0; i<this.selectedSliceMulti.length; i++)
            {
                let replacevalue = this.slicesList[0].replace(/\=>/,'');
                let replacevalue2 = replacevalue.replace(/ /g,'');
                let replacevalue3 = replacevalue2.split(/[(\)]/);
                replacevalue3.splice(4);
                let halfWayThough = Math.floor(replacevalue3.length / 2)
                let arrayFirstHalf = replacevalue3.slice(0, halfWayThough);
                let arraySecondHalf = replacevalue3.slice(halfWayThough, replacevalue3.length);
                console.log(replacevalue3)
                //this.slicesList[0].replace('\=>\','-')
            }

