Translating the device position when moving up/down