Master detail how to reduce upper space in detail grid?

how to reduce space between detail and its upper frame? plz see pic