Added lower and upper bound for the slide method.