potential fix!!!!!

the array order was the problem, but it was only because the two
functions operate in different orders, making them tell one (selection)
to do different widths, resulting in bounce effect. this might fix it