Added ability to change current photo by click at right or left side