how to keep image from going over slider border?

My images are 960w by 250h. The width is fine but the border height does not change according to image.