automatically change the pics on the main page