gSLIC implementation