make absolute element resizable