resizing now works when adding more than 16 buttons