Change what appears in a slice

You can modify a slice after you have created it. You can add more objects, remove objects, change the slice boundaries, and hide or show the layers that appear in a slice. You can also modify the export properties that were set for the slice (see Modify slice properties).

To add or remove objects from a slice

  • To add or remove objects from a slice, you can add or remove objects from the artboard in the boundaries of the slice. You can also add objects outside the boundaries of the slice and then resize the slice boundaries to include the new objects (see "To change the boundaries of a slice," later in this topic).

    The preview of the slice under Edit Slice in the Properties panel will automatically updates to reflect the added or removed objects. This means that any time you add an object to the artboard, if it is within the boundaries of a slice, the new object will appear in the slice, even if the slice was hidden or locked when the object was added.

    Note

    If you have trouble selecting objects that are already inside the blue bounding box of a slice, use the Direct Selection Cc375011.a4e92365-1fd6-473c-b727-1487d8a466c9(en-us,Expression.30).png tool, or hide the slice by clicking the Toggle Visibility Cc375011.3e342e41-0093-4150-afc9-309866723da0(en-us,Expression.30).png button under Slice Layer in the Layers panel.

    If you do not want to remove objects from the artboard, you can alternatively hide them in a slice independently of their visibility on the artboard. For more information, see "To change which of the captured objects appear in a slice," later in this topic.

To change the boundaries of a slice

  1. Under Slice Layer in the Layers panel, make sure that the slice is visible Cc375011.3e342e41-0093-4150-afc9-309866723da0(en-us,Expression.30).png and unlocked Cc375011.b553394b-65c8-4b76-8526-5fdfe68fb2c4(en-us,Expression.30).png. Otherwise, you will not be able to select or modify the slice. If a slice is hidden, click the Toggle Visibility Cc375011.a708a6c2-5a11-4137-b962-f33438ecf19a(en-us,Expression.30).png button. If the slice is locked, click the Toggle Lock Cc375011.bc1d5d9e-0048-4d04-8efe-c9b571f71a64(en-us,Expression.30).png button.

  2. Under Slice Layer or on the artboard, select a slice that you want to modify.

  3. Use the Selection Cc375011.959a05a6-5a4b-4b0e-98a3-fb628d2c03a2(en-us,Expression.30).png tool to drag the resizing handles that appear around the slice's bounding box.

    If Snap to Guides is turned on (View menu), the slice boundaries will snap to the boundary lines of nearby slices, and the boundary lines will turn red where they overlap (until you release your mouse button).

    Cc375011.aa04e384-37cc-48fc-b699-85ac1eb7ae21(en-us,Expression.30).pngCc375011.dba4008d-8610-428b-91a2-1d7f734d4c65(en-us,Expression.30).png

Tip

You can also change the boundaries of a slice by using the Fit Slice to Content command. If the slice's blue bounding box is bigger than it needs to be, or if it is not big enough to include all of the surface area of an object, you can click Fit Slice to Content on the Object menu.

To change which of the captured objects appear in a slice

  1. Under Slice Layer in the Layers panel, make sure that the slice is visible Cc375011.3e342e41-0093-4150-afc9-309866723da0(en-us,Expression.30).png and unlocked Cc375011.b553394b-65c8-4b76-8526-5fdfe68fb2c4(en-us,Expression.30).png. Otherwise, you will not be able to select or modify the slice. If a slice is hidden, click the Toggle Visibility Cc375011.a708a6c2-5a11-4137-b962-f33438ecf19a(en-us,Expression.30).png button. If the slice is locked, click the Toggle Lock Cc375011.bc1d5d9e-0048-4d04-8efe-c9b571f71a64(en-us,Expression.30).png button.

  2. Under Slice Layer or on the artboard, select a slice that you want to modify.

    Cc375011.800c9032-4132-40cc-8caf-5e1f5c97fcf6(en-us,Expression.30).png

    The slice properties appear under Edit Slice in the Properties panel.

    Cc375011.55acbbc1-8a57-4715-b468-4acea1940366(en-us,Expression.30).png

  3. Expand the Slice contents drop-down menu and expand individual layers to view the objects that appear within the boundaries of your slice. You can choose to omit (or hide) objects by clearing the check box that appears next to the object name.

    Cc375011.be336926-04bf-4a17-9fc1-0313199683f1(en-us,Expression.30).png

See also

Tasks

Move, cut, or copy a slice

Export a slice

Modify slice properties