Handle removing files related to slideshows

#5720 
WIP
- [ ] Avoid error messages in case file does not exist.
- [ ] Handle orphan slide nodes.