changed single slide code