Redraws the palette (gallery).
Call this function to redraw the palette (gallery). This is required if you have changed the content of gallery dynamically at runtime.