layer.moveBy(x,y)
The moveBy() method of the Layer object moves the layer object to the right and down from its current position. The method takes two parameters, x and y. The x parameter refers to the number of pixels the layer is moved to the right. The y parameter refers to the number of pixels the layer is moved down.