auto close of slide container