Refine transition while showing/hiding detail box