move lock ( horizontally and vertically)