It’s not clear what you are trying to do.
I’m guessing that this is some kind of slideshow.
You indicate that the “images” should be
position:relative but they aren’t in your code.
Also, your “buttons” div is using both absolute positioning AND
float which is just not logical.