For, while in slides