Fixed bug in gallery widget - dash template