Hi there and welcome
You cannot undo it but I am sure we can get it back to speed again.
As the first step, can you please hold the home and power buttons for about 10 seconds until you see the Apple Logo, then release.
Once done, let the iPad restart and when it has, tell me please if it is now operating better.
Let me know the results please.