allow for setting dimensions for gallery