I'm trying to make it so that when each image slice is clicked, it will change to a different picture (which is the picture behind that picture). I am also trying to make it toggle also.

Here is what I have so far:

**HTML:**

```
    <div id="main-wrapper">
        <div id="first-wrapper">
            <img src="img/cat0.png" cat-pic-src="cat0.png" alt="cat picture 0">
            <img src="img/cat1.png" cat-pic-src="cat1.png" alt="cat picture 1">
            <img src="img/cat2.png" cat-pic-src="cat2.png" alt="cat picture 2">
            <img src="img/cat3.png" cat-pic-src="cat3.png" alt="cat picture 3">
            <img src="img/cat4.png" cat-pic-src="cat4.png" alt="cat picture 4">
        </div>
        <div id="second-wrapper">
            <img src="img/ninja0.png" ninja-pic-src="ninja0.png" alt="ninja picture 0">
            <img src="img/ninja1.png" ninja-pic-src="ninja1.png" alt="ninja picture 1">
            <img src="img/ninja2.png" ninja-pic-src="ninja2.png" alt="ninja picture 2">
            <img src="img/ninja3.png" ninja-pic-src="ninja3.png" alt="ninja picture 3">
            <img src="img/ninja4.png" ninja-pic-src="ninja4.png" alt="ninja picture 4">
        </div>
    </div>

```

**CSS**

```
#main-wrapper {
 width: 970px;
 margin: 0 auto;
}

img {
 display: inline-block;
 width: 500px;
 margin: 2px 200px;
}

#first-wrapper {
 position: absolute;
 display: inline-block;
}

#second-wrapper {
 position: absolute;
 display: inline-block; 
}

```

**jQuery**

```
$(document).ready(function(){

$('img').click(function(){
    $(this).toggle().css('z-index', '10');

    });

});

```

It's not working as I had expected to, when I click on the image each block that I click on just disappears. 

For example, if I were to click on the image "cat0.png", it would replace it with "ninja0.png" (depending on which image I click on), and if I clicked on image "cat1.png" it would replace it with "ninja2.png" and so on. I would like it if I was also able to toggle this action as well. 

Keep in mind that each image is stacked on top of each other.