Hello, if you want to manipulate the page objects better you can use jquery, I made a basic example
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>slider</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script><style>#div1{background-color:yellow}#div2{background-color:blue}#div3{background-color:green}</style><script>$(function(){$('#div1,#div2,#div3').css({'float':'left','margin-top':'300px'}).hide();$('#img1,#img2,#img3').css({'cursor':'pointer'});$('#img1').click(function(){$('#div1').fadeIn('slow');$('#div2,#div3').fadeOut('slow');});$('#img2').click(function(){$('#div2').fadeIn('slow');$('#div1,#div3').fadeOut('slow');});$('#img3').click(function(){$('#div3').fadeIn('slow');$('#div2,#div1').fadeOut('slow');});});</script></head><body><imgwidth="50" height="50" id="img1" border="1">
<img width="50" height="50" id="img2" border="1">
<img width="50" height="50" id="img3" border="1">
<div id="div1">div1</div>
<div id="div2">div2</div>
<div id="div3">div3</div>
</body>
</html>
or only with css you define the object / class
div # img1: target {.....}