The configure() function must not be used if several galleries are on the same page