use getRenderedRange instead of getViewport, because it's the one that return indixes of displayed range