remove previously loaded slides when new slides are loaded