If Undo doesn't work, try recovering from the Slides pane by right-clicking on the gray box where your deleted slide was and selecting 'Restore Slide'. You can also check for AutoRecover files by going to File > Open > Recover Unsaved Presentations.