You have a lot of wiring there, I would check the wires and see if any copper exposed and use electrical tape and cover than zip tie the bundles of wires together so they act as one as they unfold or close into coach.
Call Newmar for one of their Mobil Tech's in your area and maybe you will not need to make a trip to them.
Very unusual to see that many loose wires like that unprotected.
by Idelup may show what the wiring should look like in that area for a 2018 NA when we had three members pulling apart their NA's looking for problems in NA's first year.
You will find the other two members threads in the NA Section of this big thread
they all have many pictures.
This is the thread
that discuss slides.
Looks to me your missing a wire loom.
Anyone owning a NEW AIRE should be looking through these links they are always in the big sticky
, I will not be here for ever to guide you to all this stuff you need to know even if you can not fix the problems that will happen guarantied.