Changes for wide_gallery

- different smaller bugfixes for wide_gallery
- new option for wide_gallery to set width of gallery