fix view gallery widget