index,rounded_box: Use .length instead of .size()

Since docs.jquery.com recommends .length.
rounded_box: Rounds all corner of the collapsed category