Adding click ovent to gallery button