Change slider so that it handles navigation