handles stay within container div; adjust positioning logic