added static boundaries to drag function