avoid that display props becomes too wide for large view indices and image numbers by change of layout