Set href on close/prev/next and only bind to click not touch events

This fixes an issue in Android 4.2 browser where the handler fires twice (e.g. skipping an image when clicking prev/next). Also works in Firefox.