now works for nested slides