hide border when details showed