BUG: styler render trimming does not work with `hide_columns`
### 

- [X] I have checked that this issue has not already been reported.

- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.

- [X] I have confirmed this bug exists on the master branch of pandas.


### Reproducible Example

```python
pd.options.styler.render.max_columns = 2
df = DataFrame(np.random.randn(1,5))
df.style.hide_columns(df.columns[:2])
```


### Issue Description

The render is empty since the first two columns are looped but hidden, the loop index does not progress passed 2.

This is a similar issue to #43703 but recorded separately since requires different fixes.

### Expected Behavior

Render columns 3 and 4 with a trimmed column

### Installed Versions

master