Up / Down arrows now work with index and 2nd time

The up / down arrows that navigate through the gallery did not function
when user came back to the category the 2nd time. Also up / down arrows
didn't work when using the index