implement left right slide