fixes bug where we could not navigate back to first slide