Resizing and cookie storage