itemSize can now also be a callback function returning the size (removed getItemSize option)