apply hide limits in length calculation