removed more gallery code to replace later as rci addon