fixing width issue if drag element.