You will need to adjust the js to change the width and accommodate the images. The galleries were designed to get these settings directly from the file, there is no supported mechanism to get the values dynamically. You could alter the js file to make it dynamic but it would be a custom integration. The currently recommended way to made these changes is to start by copying the gallery first then updating the js.