Fix css class for first and last buttons