adding modification for add slides feature