prevents click from changing image
added opactiy change when swiping