taking away the top and left values for the device position