better handling of limit cases with scroll_down/up