Set css width and height correctly when creating a div for the plugin