Fix margins to query panel tabs