Rearranging html structure and css for ability group boxes