fromPosition and toPosition are arrays, so I don't think this will do what you want...

Also, you probably want `$(this).children("div")`, rather than `$(this)`.