update slide and main image