gallery controlled by mouse