add cookie to preserve scroll on photos pages