For first error I have no time to check for all code.
For second error:
“This message is generated when corresponding lists or sublists on opposite sides of an equation do not have the same length.An error occurs because the list on the right side of this assignment does not have the same length
as the list on the left side of the assignment”
For second error:
I want to save the result of NDSolve[] to slider.
I think when the first error is solved. The second error will be solved automatically.