add border to photos
check for prev before next