added top and bottom resize abilities