Previous/Next fix for pictures