Put together some code to simulate a gallery functionality.Tried to follow a modulish pattern to construct the widget