Handle events of thumbails