Only keep the elements in `elements` array

This is because the width/height caching that was done before was preventing the page to update it's width when the longest element grew wider.