add function to set the selection rect (for partial selections),