scale down function doesn't work on mousemove event