Added possibility to set width and height of gallery if they are set as inline style attributes