Adding gallery code