fix GetInitialIndexForStartup logic. Now show the first visited slide, followed by not visited.