The
command resizes the layer boundaries to match the image boundaries, without moving the contents of the selected layers with respect to the image.You can access this command
From the main menu through
→ .From the Layers Dialog, you can access it through the command of its context menu.