Modified slide to show position out of all slides

Additionally, improved structure of Javascript so it updates the position items only *after* updating the contents of the slide.
Changing the mode on these files