change img size after calling the slider function