added slides js
fixed associated images, adding js for slides on main view