added dependent destroy for slides