change insert image slider to use ajax