implemented resizing parallelogram