shrink/expand functionality restyled