modified javascript for more pictures in slide show