removing div and adding class "slice" as attr