Fixed Array.slice error (Chrome)
panel.body.dom.offsetWidth/offsetHeight