combing #leftimg and #rightimg to new class