the js for the 4 images needs some more refinement but it does the job