made the width of the ul dynamic