changed plot resize to use matrix method. fixed error in moving plots