Adding support for getFirstVisiblePosition and getLastVisiblePosition