previous image max and rick next image