Simplifying code
Fixed getFirstVisibleItem (also Last + all functions) function sometimes returning incorrect item after normalisation