add resize for slider