Altering resize script for right-side operations