You’d need to run library tidy to remove all unused files, it will not remove any files that are currently assigned to layouts though.
That being said, I’m still unsure what form you meant in your in first post ie what do you mean by “slides” exactly, it would be best to show us a screenshot of the problem and please confirm the CMS version as well.