Reposition and resize elements