fix display issue when sliding left/right an item