Wire up gallery code